
import React from 'react';
import List from "./list";
import Static from './static';
import App from './app';


import { BrowserRouter, HashRouter,StaticRouter, Route, Link } from 'react-router-dom';
const Router = __CLIENT__ ? HashRouter : StaticRouter;

// const routes = {
//     path: '/',
//     component: App,
//     childRoutes: [
//       { path: 'list', component: List },
//       { path: 'static', component: Static },
//     ]
//   };


const Routes = (<Router>
    <Route path="/" component={App}>
        <Route path="list" component={List} />
        <Route path="static" component={Static} />
    </Route>
</Router>)
    

  
export default  Routes;